{extend name="common/main"/}

{block name="body"}
<div class="main-title">
    <h2>用户资料</h2>
</div>

<section class="member-detail-section row clearfix">
    <div class="base col-sm-3">
        <div class="base-box card">
            <div class="avatar">
                <img class="avatar-img" src="{$member.avatar128}" />
            </div>
            <div class="uid">uid: {$member.uid}</div>
            <div class="nickname">
                <span class="">
                    {$member.nickname}
                </span>
            </div>
            <div class="message">
                <a type="button" class="btn btn-block btn-lg btn-success {if !check_auth('admin/Message/send')}disabled{/if}" data-name="sendMessageModal" data-iframe="{:url('admin/Message/send',['to_uid' => $member['uid']])}" data-toggle="modal" data-size="lg" data-height="600px">发送消息</a>
            </div>
            <div class="other-info">
                <div class="form-file">
                    <div class="form-label">用户名</div>
                    <div class="form-value">
                        <span class="">
                            {$member.username}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">邮箱</div>
                    <div class="form-value">
                        <span class="">
                            {$member.email}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">手机</div>
                    <div class="form-value">
                        <span class="">
                            {$member.mobile}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">性别</div>
                    <div class="form-value">
                        <span class="">
                            {$member.sex_str}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="detail-files-box col-sm-9">
        <div class="form-files-box card">
            <!-- 基本设置 start -->
            <div class="form-file header">基本信息</div>
            <div class="form-files">
                <div class="form-file">
                    <div class="form-label">注册时间</div>
                    <div class="form-value">
                        <span class="">
                            {$member.create_time_friendly_str}
                        </span>
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">注册IP</div>
                    <div class="form-value">
                        <span class="">
                            {$member.reg_ip}
                        </span>
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">注册渠道</div>
                    <div class="form-value">
                        <span class="">
                            {$member.reg_channel_str}
                        </span>
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">登录次数</div>
                    <div class="form-value">
                        <span class="">
                            {$member.login}
                        </span>
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">最后登录时间</div>
                    <div class="form-value">
                        <span class="">
                            {$member.last_login_time_friendly_str}
                        </span>
                    </div>
                </div>
                <div class="form-file">
                    <div class="form-label">最后登录IP</div>
                    <div class="form-value">
                        <span class="">
                            {$member.last_login_ip}
                        </span>
                    </div>
                </div>
            </div>
        </div>

        {notempty name="member.expend"}
        <div class="form-files-box card">
            <div class="form-file header">扩展资料</div>
            {volist name="member.expend" id="vo"}
            <div class="form-files">
                <div class="form-file">
                    <div class="form-label">{$vo.alias}</div>
                    <div class="form-value">
                        <span class="margin-left">
                            {$vo.data}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
            </div>
            {/volist}
        </div>
        {/notempty}

        <div class="form-files-box card">
            <div class="form-file header">用户积分</div>
            {volist name="member.score" id="vo"}
            <div class="form-files">
                <div class="form-file">
                    <div class="form-label">{$vo.title}</div>
                    <div class="form-value">
                        <span class="margin-left">
                            {$vo.value} {$vo.unit}
                        </span>
                    </div>
                    <div class="form-edit">
                        
                    </div>
                </div>
            </div>
            {/volist}
        </div>
    </div>
</section>

{/block}